home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_300
/
313_01
/
ops.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-04-21
|
1KB
|
50 lines
/* $Header: /nw2/tony/src/stevie/src/RCS/ops.h,v 1.2 89/07/19 08:08:21 tony Exp $
*
* Macros and declarations for the operator code in ops.c
*/
/*
* Operators
*/
#define NOP 0 /* no pending operation */
#define DELETE 1
#define YANK 2
#define CHANGE 3
#define LSHIFT 4
#define RSHIFT 5
#define FILTER 6
#define TILDE 7
extern int operator; /* current pending operator */
/*
* When a cursor motion command is made, it is marked as being a character
* or line oriented motion. Then, if an operator is in effect, the operation
* becomes character or line oriented accordingly.
*
* Character motions are marked as being inclusive or not. Most char.
* motions are inclusive, but some (e.g. 'w') are not.
*/
/*
* Cursor motion types
*/
#define MBAD (-1) /* 'bad' motion type marks unusable yank buf */
#define MCHAR 0
#define MLINE 1
extern int mtype; /* type of the current cursor motion */
extern bool_t mincl; /* true if char motion is inclusive */
extern LPTR startop; /* cursor pos. at start of operator */
/*
* Functions defined in ops.c
*/
void doshift(), dodelete(), doput(), dochange(), dofilter();
#ifdef TILDEOP
void dotilde();
#endif
bool_t dojoin(), doyank();
void startinsert();